package tools.clustering;

public class Link implements Comparable<Link>{

	private String source;
	private String target;
	private Object interaction;
	
	public Link(String s,String t, Object i){
		this.setSource(s);
		this.setTarget(t);
		this.setInteraction(i);
	}
	
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getTarget() {
		return target;
	}
	public void setTarget(String target) {
		this.target = target;
	}
	public Object getInteraction() {
		return interaction;
	}
	public void setInteraction(Object interaction) {
		this.interaction = interaction;
	}

	@Override
	public int compareTo(Link o) {
		if(this.source.equals(o.getSource())&&this.target.equals(o.getTarget())&&this.interaction.equals(o.getInteraction())){
			return 0;
		}else{
			return -1;
		}
	}
	
	
}
